/*
 * SQL.h
 *
 *  Created on: Jun 11, 2010
 *      Author: administrator
 */

#ifndef SQL_H_
#define SQL_H_
#include "types/common.h"
// #include <string.h>
// #include <vector.h>
// #include <map>
using namespace std;

class SQL{
public:
	enum commands {CREATE = 1,INSERT = 2,SELECT = 3};
	string sql_command;
	string table_name;
	string index_name;
	int num_attr;
	vector<string> attributes;
	int num_values;
	vector<UINT32> attr_values;
	map <string,string> conditions;
	bool andCondition;
	bool orCondition;
	bool index_duplicate;
	vector<string> ope;
	inline SQL():num_attr(0),num_values(0){}
	inline SQL(string command):sql_command(command),num_attr(0),num_values(0),andCondition(false),orCondition(false){}
	inline virtual ~SQL(){}
};
#endif /* SQL_H_ */
